package com.pcjavanet.collect.mes.to;

public class DiscreteOriginalData {
	/**
	 * yieldTime.
	 */
	private String yieldTime="1970-01-01 00:00:00";
	/**
	 * serialKey.
	 */
//	private int serialKey; 
	/**
	 * serialNumber.
	 */
	private String serialNumber; 
	/**
	 * total.
	 */
	private int total=1;
	/**
	 * pass.
	 */
	private int pass=0;
	/**
	 * fail.
	 */
	private int fail=0;
	/**
	 * defects.
	 */
	private int defects=0;
	
	/** activity==>a_DateTime */
	private long aDateTime=0l;
	
	/** activity==>key */
	private int  locationKey=0;
	
	/** activity==>action*/
	private int action=0;
	
	private String partNumber;
	
	public static int COMMON_DATA = 1;
	
	public static int BATCH_DATA = 2;
	
	private int  spcChartDataType =1;

	private int moduleSelect;
	
	private boolean defectStaticFlag; 
	
	public boolean isDefectStaticFlag() {
		return defectStaticFlag;
	}

	public void setDefectStaticFlag(boolean defectStaticFlag) {
		this.defectStaticFlag = defectStaticFlag;
	}

	public int getModuleSelect() {
		return moduleSelect;
	}

	public void setModuleSelect(int moduleSelect) {
		this.moduleSelect = moduleSelect;
	}

	public int getSpcChartDataType() {
		return spcChartDataType;
	}

	public void setSpcChartDataType(int spcChartDataType) {
		this.spcChartDataType = spcChartDataType;
	}

	/**
	 * 
	 * @return
	 */
	public int getAction(){
		return action;
	}
	
	/**
	 * 
	 * @param actions
	 */
	public void setAction(int actions){
		action = actions;
	}
	/**
	 * 
	 * @return
	 */
	public int getLocationKey(){
		return locationKey;
	}
	/**
	 * 
	 * @param key
	 */
	public void setLocationKey(int key) {
		locationKey = key ;
	}
	
	
	/**
	 * 
	 * @return
	 */
	public long getADateTime(){
		return aDateTime;
	}
	
	/**
	 * 
	 * @param dateTime
	 */
	public void setADateTime(long dateTime ){
		aDateTime = dateTime;
	}
	
	/**
	 * get defects.
	 * @return defects -int
	 */
	public int getDefects() {
		return defects;
	}
	
	/**
	 * set Defects.
	 * @param defects -int
	 */
	public void setDefects(int defects) {
		this.defects = defects;
	}
	
	/**
	 * get Fail.
	 * @return fail -int
	 */
	public int getFail() {
		return fail;
	}
	
	/**
	 * set fail.
	 * @param fail -int
	 */
	public void setFail(int fail) {
		this.fail = fail;
	}
	
	/**
	 * get Pass.
	 * @return pass -int
	 */
	public int getPass() {
		return pass;
	}
	
	/**
	 * set pass.
	 * @param pass -int
	 */
	public void setPass(int pass) {
		this.pass = pass;
	}
	
	
	/**
	 * get total.
	 * @return total -int
	 */
	public int getTotal() {
		return total;
	}
	
	/**
	 * set Total.
	 * @param total -int
	 */
	public void setTotal(int total) {
		this.total = total;
	}
	
	/**
	 * get yieldTime.
	 * @return yieldTime -String
	 */
	public String getYieldTime() {
		return yieldTime;
	}
	
	/**
	 * set YieldTime.
	 * @param yieldTime -String
	 */
	public void setYieldTime(String yieldTime) {
		this.yieldTime = yieldTime;
	}

	/**
	 * get SerialKey.
	 * @return serialKey -int
	 */
//	public int getSerialKey() {
//		return serialKey;
//	}

	/**
	 * set SerialKey.
	 * @param serialKey -int
	 */
//	public void setSerialKey(int serialKey) {
//		this.serialKey = serialKey;
//	}


	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public String getPartNumber() {
		return partNumber;
	}

	public void setPartNumber(String partNumber) {
		this.partNumber = partNumber;
	}

	@Override
	public String toString() {
		return "DiscreteOriginalData [yieldTime=" + yieldTime
				+ ", serialNumber=" + serialNumber + ", total=" + total
				+ ", pass=" + pass + ", fail=" + fail + ", defects=" + defects
				+ ", aDateTime=" + aDateTime + ", locationKey=" + locationKey
				+ ", action=" + action + ", partNumber=" + partNumber
				+ ", spcChartDataType=" + spcChartDataType + ", moduleSelect="
				+ moduleSelect + ", defectStaticFlag=" + defectStaticFlag + "]";
	}

}
